﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BusinessObjects.BO_GetObjects;
using LibraryO2S;
using BusinessObjects;

public partial class controls_admin_ViewSysErrorLog : Pages_Base
{
    protected void Page_Load(object sender, EventArgs e)
    {
        base.removeHGC(divMessage);
        if (!IsPostBack)
        {
            loadSysErrorLog();
        }
    }
    private void loadSysErrorLog()
    {
        try
        {
            base.OpenConnection();
            DataTable objDT = BO_Sys_Error_Log.SelectWithPaged(base.Cur_page, base.Page_size, 1);
            base.bindRepeater(rptSysErrorLog, objDT, pageContainner, divMessage, divResult);
        }
        catch (Exception ex)
        {
            divMessage.InnerHtml = O2S_Message.Error("Lỗi", "Phát hiện lỗi trong quá trình xử lý<br />" + ex.Message);
        }
        finally { base.CloseConnection(); }
    }
}
